package com.sxpi.model.entity;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("coupons")
public class Coupons {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String code;
    private String name;
    //(0无门槛  1 类型优惠 2满减优惠)
    private String type;
    private Double value;
    private Double minAmount;
    private Integer timeEffect; //过期时效（天）
    //状态0未使用  1已兑换  2 已过期
    private Integer status;
    private LocalDateTime createdTime;
    private LocalDateTime createdBy;
} 